#![allow(overflowing_literals)]

fn main() {
    let decimal = 65.4321_f32;
    // let integer:u8 = decimal;
    let integer = decimal as u8;
    println!("integer = {}", integer);
    // 智能用u8转到char
    let character = integer as char;
    println!("{}", character);
    println!("{}", 1000 as u16);
    println!("{}", 1000 as u8);
    println!("{}", -1i8 as u8);
    // println!("{},{}", u8::MAX, u8::MAX + 1);
    println!("{}",100%256);
    println!("{}",128 as i16);
    println!("{}",128 as i8);
    println!("{}",1000 as u8);
    println!("{}",232 as i8);

}